package command

import (
	"fmt"
	"github.com/spf13/cobra"
)

var adduserCmd = &cobra.Command{
	Use:   "adduser [username]",
	Short: "Add a new user",
	Long:  `添加一个用户.`,
	Args:  cobra.ExactArgs(1),
	Run: func(cmd *cobra.Command, args []string) {
		username := args[0]
		// Add user with specified name
		fmt.Printf("Adding user %s\n", username)
	},
}

var deleteuserCmd = &cobra.Command{
	Use:   "deleteuser [username]",
	Short: "Delete a user",
	Long:  `Delete the user with the specified username.`,
	Args:  cobra.ExactArgs(1),
	Run: func(cmd *cobra.Command, args []string) {
		username := args[0]
		// Delete user with specified name
		fmt.Printf("Deleting user %s\n", username)
	},
}
